package com.kuaiyan.sdkshell.ad;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.kuaiyan.sdkshell.R;
import com.kuaiyan.sdkshell.utils.CTelephoneInfo;

/**
 * Created by wm on 2018/1/14.
 */

public class ImeiTestActivity extends Activity {
    private TextView tvImei1;
    private TextView tvImei2;
    private TextView tvSn;
    private TextView tvMeid;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_imei);
        initView();
        tvSn.setText(Build.SERIAL);//SN
        CTelephoneInfo.getInstance(this).setCTelephoneInfo();
        tvImei1.setText(CTelephoneInfo.getInstance(this).getImeiSIM1());
        tvImei2.setText(CTelephoneInfo.getInstance(this).getImeiSIM2());
    }

    private void initView() {
        tvImei1 = (TextView) findViewById(R.id.tv_imei1);
        tvImei2 = (TextView) findViewById(R.id.tv_imei2);
        tvSn = (TextView) findViewById(R.id.tv_sn);
        tvMeid = (TextView) findViewById(R.id.tv_meid);
    }


}
